package cn.ranko.shiro.mapper;

import cn.ranko.bean.Pagination;
import cn.ranko.shiro.model.SysUser;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    Integer countOfSysUser();

    List<SysUser> querySysUser(Pagination pagination);

    SysUser selectForLogin(SysUser userLogin);

    List<SysUser> selectRoleUser(Integer roleId);
}